package com.helloUIBinder.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class OnEditDeleteCellClickEvent extends GwtEvent<OnEditDeleteCellClickHandler> {
    
    public final static String EDIT = "EDIT";
    public final static String DELETE = "DELETE";
    private String clickedButton="";
    private Integer clickedId;

    public static GwtEvent.Type<OnEditDeleteCellClickHandler> TYPE = new GwtEvent.Type<OnEditDeleteCellClickHandler>();

    @Override
    public GwtEvent.Type<OnEditDeleteCellClickHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(OnEditDeleteCellClickHandler handler) {
        handler.click(this);
    }

    public String getClickedButton() {
        return clickedButton;
    }

    public void setClickedButton(String clickedButton) {
        this.clickedButton = clickedButton;
    }

    public Integer getClickedId() {
        return clickedId;
    }

    public void setClickedId(Integer clickedId) {
        this.clickedId = clickedId;
    }
}
